function pay(orderNo){
	var errorMsg = $("#error_message");
	var password = $("#password").val();
	var code = $("#code").val();
	
	if (password.length == 0) {
		errorMsg.html("请输入支付密码");
		return;
	}
	if (code.length == 0) {
		errorMsg.html("请输入验证码");
		return;
	}
	
	$.ajax({
		type : 'POST',
		url : ctx + '/order/orderPay.do',
		data : {
			orderNo: orderNo,
			password: password
		},
		dataType : 'json',
		timeout : 30000,
		context : $('body'),
		success : function(data) {
			if (data.code == "ok") {
				window.location=ctx + '/order/orderPaySuccess?orderNo=' + orderNo;
			} else {
				errorMsg.html(data.msg);
			}
		},
		error : function(xhr, type) {
			errorMsg.html('提交失败!');
		}
	});
}